package com.bw.service;

import com.bw.pojo.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("EMAIL-SERVER")
public interface EmailService {
    @PostMapping("/shop")
    public boolean shop(@RequestBody Course course, @RequestParam("user") String[] user);
}
